import pickle

with open('./hf1-andy/ch0304/mydata.pickle','wb') as mysavedata:
    pickle.dump([1,2,'three'], mysavedata)

with open('./hf1-andy/ch0304/mydata.pickle','rb') as myrestoredata:
    a_list = pickle.load(myrestoredata)
    print(a_list)
